﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
using WebApiV3.Data.Entity;

namespace WebApiV3.Data
{
    public class Admin3200ConText:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var aa = "server=.;Database=Admin3200;uid=sa;pwd=123456";
            optionsBuilder.UseSqlServer(aa);
        }

        public DbSet<Users> Users { get; set; }

        public DbSet<Roles> Roles { get; set; }

        public DbSet<Logs> Logs { get; set; }
    }
}
